result = []
for i in range(2,51):
    for j in range(2, i):
        if i%j == 0:
            break
    else:
        result.append(i)
print(result)